package pe.edu.upc.dsd.jjjar.upcbank.server.dao;

import java.sql.SQLException;
import java.util.List;

import pe.edu.upc.dsd.jjjar.upcbank.resources.client.model.Afiliacion;
import pe.edu.upc.dsd.jjjar.upcbank.resources.client.model.UserProfile;


public interface AfiliacionDAO {

	public abstract int count() throws SQLException;
	public abstract List<Afiliacion> list(UserProfile usuario, String sort, String dir, int page) throws SQLException;
	public abstract int getLastId() throws SQLException;
	public abstract int exists(Afiliacion afiliacion) throws SQLException;
	public abstract int save(Afiliacion afiliacion, UserProfile usuario) throws SQLException;
	public abstract int delete(Afiliacion afiliacion) throws SQLException;
	public abstract int delete(List<Afiliacion> afiliaciones) throws SQLException;

	
	
}
